<!--
代码为自动生成 Created by www.magicalcoder.com
 软件作者：何栋宇 qq:709876443
 如果你改变了此类 read 请将此行删除
 欢迎加入官方QQ群:648595928
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head  th:include="magicalcoder/v103/include/head :: commonHead('商品列表')"/>
<body class="childrenBody">
<!--请不要删除magicaldrag注释标签，可以配合布局器进行联动布局-->
<!--magicaldrag-->
    <div class="layui-fluid">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">查询条件</div>
                    <div class="layui-card-body">
                        <form class="layui-form queryForm security_list_query_form">
                            <div class="layui-form-item">
                                <div class="layui-inline security_list_query_param_goodsCategoryId">
                                    <select  data-name="goodsCategoryId" class="magicalcoder-foreign-select2 layui-input" lay-ignore="true" name="goodsCategoryIdFirst" style="height:30px;width: 200px" data-url="admin/goods_category_rest/search" data-id="id" data-text-fields="name" placeholder="商品分类" data-limit="20"><option value=""></option></select>
                                </div>
                                <div class="layui-inline security_list_query_param_createTime">
                                    <input type="text" data-name="createTime" name="createTimeFirst" lay-verify="datetime"  placeholder="起始创建时间" autocomplete="off" class="magicalcoder-laydate layui-input"/>
                                </div>
                                <div class="layui-inline security_list_query_param_createTime">-</div>
                                <div class="layui-inline security_list_query_param_createTime">
                                    <input type="text" data-name="createTime"  name="createTimeSecond" lay-verify="datetime"  placeholder="终止创建时间" autocomplete="off" class="magicalcoder-laydate layui-input"/>
                                </div>
                                <div class="layui-inline security_list_query_param_goodsStatus">
                                    <select data-name="goodsStatus" name="goodsStatusFirst" class="layui-input">
                                        <option value="" >请选择</option>
                                        <option value="0" >下架</option>
                                        <option value="1" >上架</option>
                                    </select>
                                </div>
                                <div class="layui-inline security_list_query_param_goodsName">
                                    <input type="text" class="layui-input" data-name="goodsName" name="goodsNameFirst" placeholder="商品名" />
                                </div>
                                <div class="layui-inline security_list_query_operate_search">
                                    <a class="layui-btn  layui-btn-radius layui-btn-sm search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
                                    <button type="reset" class="layui-btn layui-btn-radius layui-btn-warm layui-btn-sm"><i class="layui-icon layui-icon-refresh"></i>重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header"  style="height: auto;">
                        <div class="layui-inline security_list_query_operate_add_news">
                            <a class="layui-btn layui-btn-normal layui-btn-sm addNews_btn"><i class="layui-icon layui-icon-add-1"></i>添加</a>
                        </div>
                        <div class="layui-inline security_list_query_operate_del_all">
                            <a class="layui-btn layui-btn-danger layui-btn-sm delAll_btn"><i class="layui-icon layui-icon-delete"></i>批量删除</a>
                        </div>
                        <div class="layui-inline security_list_export_excel_all">
                            <a href="javascript:{}" class="layui-btn layui-btn-sm exportExcelAll_btn" title="数据量很多时谨慎使用,出于安全考虑最大导出20000条" data-max-export-count="20000"><i class="layui-icon layui-icon-export"></i>导出EXCEL</a>
                        </div>
                    </div>
                    <div class="layui-card-body">
                        <form class="layui-form tableForm security_list_table_form">
                            <table class="security_list_table" id="newsList" lay-filter="newsListFilter" data-primary-fields="id"></table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<!--/magicaldrag-->
        <script type="text/html" id="createTimeTemplate">
            <input type="text" id="_createTime_{{= d.id }}" name="createTime"  data-identify="{{= d.id }}"  autocomplete="off" class="magicalcoder-table-laydate layui-input security_list_table_form_createTime" value="{{= d.createTime}}" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0"  placeholder="请输入创建时间"/>
        </script>
        <script type="text/html" id="goodsStatusTemplate">
            <select class="magicalcoder-table-single-select2 security_list_table_form_goodsStatus" name="goodsStatus" lay-ignore="true" data-identify="{{= d.id }}" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0"  placeholder="请输入商品状态">
                {{#  if(d.goodsStatus+"" == ""){ 		 }}
                <option value="" selected="selected">请选择</option>
                {{#  }else{							}}
                <option value="">请选择</option>
                {{#  } 								}}
                {{#  if(d.goodsStatus+"" == "0"){ 		 }}
                <option value="0" selected="selected">下架</option>
                {{#  }else{							}}
                <option value="0">下架</option>
                {{#  } 								}}
                {{#  if(d.goodsStatus+"" == "1"){ 		 }}
                <option value="1" selected="selected">上架</option>
                {{#  }else{							}}
                <option value="1">上架</option>
                {{#  } 								}}
            </select>
        </script>
    <!--操作-->
    <script type="text/html" id="newsListOperateTemplate">
        <a class="layui-btn layui-btn-normal layui-btn-xs security_list_table_operate_edit" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs security_list_table_operate_del" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
        <a class="layui-btn layui-btn-xs security_list_table_operate_children" lay-event="children"><i class="layui-icon layui-icon-senior"></i>相关</a>
    </script>
    <div th:replace="magicalcoder/v103/include/main-js :: commonMain" />
    <script type="text/javascript"  th:src="@{/assets/admin/goods/list.js}"></script>
</body>
</html>
